import request from "@/utils/request"
import { genParams } from '../utils/public'

// 获取广告报表
export const get_ads_daily_reports = (data) => {
    // data['is_bin'] = 1;
    return request({
        url: '/api/ads/adsreport/get_ads_daily_report' + genParams(data)
    })
}

// 广告开关
// http://ab-houtai.mofa.com?account_id=账号id&ad_id=广告id&status= PAUSED 暂停 ACTIVE开启
export const change_adgroup_status = (data) => {
    return request({
        url: '/api/ads/adsrun/change_adgroup_status' + genParams(data)
    })
}

export const changeBudget = (data) => {
    return request({
        url: "/api/ads/adsrun/change_adgroup_daily_budget" + genParams(data)
    })
}

